﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_13_2021
{
    class GetArea
    {
        public void GetAreaPrint(double length,double wide)
        {
            Console.WriteLine("长方形的面积为："+length*wide);
        }

        public void GetAreaPrint(double r)
        {
            double Π = 3.14;
            Console.WriteLine("圆形的面积为："+Π*r*r);
        }
    }
}
